﻿<%@ Page Title="" Language="C#" MasterPageFile="~/templete/MasterPage_Front.master"
    AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content_Title" ContentPlaceHolderID="PageTitle" runat="Server">
    中大e家 - 一站式的校园信息服务
</asp:Content>
<asp:Content ID="Content_Link" ContentPlaceHolderID="headinfo" runat="server">
    <script src="templete/JS/weibo.js" type="text/javascript"></script>
      <script type="text/javascript">
          //CKEDITOR.replace('<%= tb_SignInName.ClientID %>', { toolbar: 'SimpleText' });

          $(function () {
              $('.input_bg input').each(function () {
                  var $input = $(this);
                  $input.click(function () {
                      $input.attr({ 'style': 'background-image:none' });
                  }).blur(function () { if (this.value == '') { $input.removeAttr('style'); } });
              })
          });
    </script>
</asp:Content>
<asp:Content ID="Content_Header" ContentPlaceHolderID="Header" runat="Server">
    <div id="header">
        <h1 id="logo">
            <img alt="" src="templete/images/logo.png" /></h1>
        <div id="signin">
            <div id="signin-and-login">
                <div class="login_item">
                    <div class="regtop">
                        <a href="Reg.aspx" class="regbtn"></a>
                        <p>
                            马上畅享一站式的校园信息服务！</p>
                    </div>
                    <div class="loginform" id="login_form">
                        <div class="input_bg">
                            <asp:TextBox ID="tb_SignInName" runat="server" ToolTip="用户名"></asp:TextBox>
                        </div>
                        <div class="input_bg">
                            <asp:TextBox ID="tb_PWD" CssClass="pw" TextMode="Password" runat="server" ToolTip="密码"></asp:TextBox>
                        </div>
                        <div class="setting">
                            <span class="lf">
                                <label><asp:CheckBox ID="cb_Remember" runat="server" CssClass="labelbox" />
                                    记住登录名</label></span><a class="rt" href="#" target="_blank">找回密码</a>
                        </div>
                        <div class="signin">
                            <asp:Button ID="login_submit_btn" CssClass="sp" runat="server" Text="登 录" OnClick="login_submit_btn_Click" /></div>
                    </div>
                </div>
            </div>
            <div id="howtovisit">
                <dl>
                    <dt>您可以通过如下方式访问中大e家：</dt>
                    <dd>
                        <p>Web(网页版)：<cite>www.esysu.com</cite></p>
                        <p>Wap(手机版)：<cite>m.esysu.com</cite></p>
                        <p>Android客户端：<cite>点击这里下载安装</cite></p>
                    </dd>
                </dl>
            </div>
            <div id="contact-info">
                <dl>
                    <dt>更多e家信息，请关注：</dt>
                    <dd>
                        <p>新浪微博：<cite>t.sina.com.cn/esysu</cite></p>
                        <p>腾讯微博：<cite>t.qq.ccm/e-sysu</cite></p>
                        <p class="more" style="display: none;">
                            <a target="_blank" href="#">更多方式<em>&gt;&gt;</em></a></p>
                    </dd>
                </dl>
            </div>
        </div>
    </div>
    <div id="tips">
        <div class="tipscontent">
            正在热议：达沃斯论坛 春运 寻找同路人 求票 NBA全明星先发 让红包飞 房产税 武林外传 春运 达沃斯论坛 春运 寻找</div>
    </div>
</asp:Content>
<asp:Content ID="Content_Content" ContentPlaceHolderID="MainContent" runat="Server">
    <div id="content">
        <div id="latestnews">
            <h3>
                校园新闻<span>Campus News</span></h3>
            <ul>
                <asp:Repeater ID="Repeater_LatestNews" runat="server">
                    <ItemTemplate>
                        <li>
                            <p class="time">
                                <b>
                                    <%#DataBinder.Eval(Container.DataItem, "SCollege")%></b>
                                <%#String.Format("[{0:MM-dd}]",DataBinder.Eval(Container.DataItem, "PostTime"))%></p>
                            <p>
                                <a href="NewsReading.aspx?ID=<%#DataBinder.Eval(Container.DataItem, "NewsID")%>"
                                    target="_blank">
                                    <%#DataBinder.Eval(Container.DataItem,"title") %></a></p>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
        <div id="latestwb">
            <dl class="wb_list">
                <dt>微博更新 <span>Latest Weibo</span></dt>
                <dd style="overflow-x: hidden; overflow-y: hidden;">
                    <div class="maincontent" id="txtBoxCon">
                        <asp:ScriptManager ID="ScriptManager_Default" runat="server">
                        </asp:ScriptManager>
                        <asp:UpdatePanel ID="UpdatePanel_LatestWeibo" runat="server">
                            <ContentTemplate>
                                <asp:Timer ID="Timer_Weibo" runat="server" OnTick="Timer_Weibo_Tick">
                                </asp:Timer>
                                <ul id="slider">
                                    <asp:Repeater ID="Repeater_LatestWeibo" runat="server">
                                        <ItemTemplate>
                                            <li>
                                                <div class="itemt">
                                                    <div class="twit_item MIB_linedot2">
                                                        <div class="wb_item_pic">
                                                            <a href="http://t.sina.com.cn/<%#DataBinder.Eval(Container.DataItem, "user_id")%>"
                                                                target="_blank">
                                                                <img dynamic-src="http://tp3.sinaimg.cn/1733241674/50/1295853862/0" imgtype="head"
                                                                     title="<%#DataBinder.Eval(Container.DataItem, "screen_name")%>"
                                                                    pop="true" src="<%#DataBinder.Eval(Container.DataItem, "profile_image_url")%>"></a></div>
                                                        <div class="wb_item_content">
                                                            <a href="http://t.sina.com.cn/<%#DataBinder.Eval(Container.DataItem, "user_id")%>"
                                                                 target="_blank" title="<%#DataBinder.Eval(Container.DataItem, "screen_name")%>">
                                                                <%#DataBinder.Eval(Container.DataItem, "screen_name")%><img class="small_icon vip"
                                                                    src="http://img.t.sinajs.cn/t3/style/images/common/transparent.gif" title="新浪认证"
                                                                    alt=""></a>：<%#DataBinder.Eval(Container.DataItem, "text")%><div class="twit_item_time">
                                                                        <%#DataBinder.Eval(Container.DataItem, "created_at")%></div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ul>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </dd>
            </dl>
            <script type="text/javascript">
                new slider({ id: 'slider', auto: 4 })
            </script>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content_Footer" ContentPlaceHolderID="Footer" runat="Server">
    <div id="footer">
        <div id="footerlogo">
            <p id="fimg-r">
            </p>
        </div>
        <div id="footerlinks">
            <ul>
                <li>&copy; 2011 esysu.com </li>
                <li>><a href="About.aspx">关于eSYSU</a></li>
                <li>><a href="Feedback.aspx">意见反馈</a></li>
                <li>><a href="blog/">开发日志</a></li>
                <li>><a href="http://www.sysu.edu.cn/" target="_blank">中大主页</a></li>
                <li>><a href="#" target="_blank">致谢</a></li>
            </ul>
        </div>
    </div>
</asp:Content>
